package cn.hqc.org.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 店铺入驻管理员 dto
 */
@Data
public class AdminDto {

    @NotBlank(message = "用户姓名不能为空")
    private String username;
//    @Pattern(regexp = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[6|7|8])|(18[0-9])|166|198|199)\\\\d{8}$")
    private String phone;
    @NotBlank(message = "用户邮箱不能为空")
    private String email;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "二次密码不能为空")
    private String comfirmPassword;
}
